<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div th:replace="common/top">
</div>

<div id="Content">
    <div id="Catalog">
        <form th:action="'/catalog/newItem?PRODUCTID='+${productId}" method="post">
            <h2 >新增单品到<p th:text="${productId}"></p></h2><br>
            <p>
                <table>
                    <tr>
                        <td>ItemId:</td>
                        <td><input type="text" name="itemId" id="itemId"></td>
                    </tr>
                    <tr>
                        <td>ProductId:</td>
                        <td><input type="text" name="productId" id="productId" th:value="${productId}" readonly="readonly"></td>
                    </tr>
                    <tr>
                        <td>ListPrice: </td>
                        <td><input type="text" name="listPrice" id="listPrice"></td>
                    </tr>
                    <tr>
                        <td>UnitCost: </td>
                        <td><input type="text" name="unitCost" id="unitCost"></td>
                    </tr>
                    <tr>
                        <td>SupplierId: </td>
                        <td><input type="number" name="supplierId" id="supplierId"></td>
                    </tr>
                     <tr>
                         <td>Status: </td>
                         <td><input type="text" name="status" id="status"></td>
                     </tr>
                    <tr>
                        <td>Attribute1: </td>
                        <td><input type="text" name="attribute1" id="attribute1"></td>
                    </tr>
                    <tr>
                        <td>Attribute2: </td>
                        <td><input type="text" name="attribute2" id="attribute2"></td>
                    </tr>
                    <tr>
                        <td>Attribute3: </td>
                        <td><input type="text" name="attribute3" id="attribute3"></td>
                    </tr>
                    <tr>
                        <td>Attribute4: </td>
                        <td><input type="text" name="attribute4" id="attribute4"></td>
                    </tr>
                    <tr>
                        <td>Attribute5: </td>
                        <td><input type="text" name="attribute5" id="attribute5"></td>
                    </tr>
                    <tr>
                        <td>Quantity: </td>
                        <td><input type="number" name="quantity" id="quantity"></td>
                    </tr>
                </table>
            </p>

            <a class="Button" href="/catalog/viewItems" th:text="放弃更改">abandon</a>
            <input type="submit" th:value="确认">
        </form>
    </div>
</div>

<div th:replace="common/bottom">
</div>
</body>
</html>